
#ifndef PROJECTZ_NUSER_NCOMMAND_NMATCHING_CS_DUNGEON_MOB_HP_INFO_H_
#define PROJECTZ_NUSER_NCOMMAND_NMATCHING_CS_DUNGEON_MOB_HP_INFO_H_

#include <map>

#include "../../engine.h"

#include "../../User.h"

namespace ProjectZ { namespace NCommand { namespace NMatching {

class CS_DUNGEON_MOB_HP_INFO
{
public:
	static void OnExecute(User * pUser, ::Network::Packet * pPacket)
	{
		STRESSLOG("CS_DUNGEON_MOB_HP_INFO");
		PREPARE_PACKET;

		int gid = 0;
		int hp = 0;
		int map_index = 0;
		pPacket->ParseMsg("%d%d%2d", &gid, &hp, &map_index);

		// NOT USE!!
//		::Logger::GETLOG()->ToFile(::Logger::DEBUG, "GID \t%d CS_DUNGEON_MOB_HP_INFO, %d, %d, %d", pUser->GetGID(), gid, hp, map_index);
//
//		//
//		::ProjectZ::NGame::CBaseSpace * pSpace = pUser->GetSpace();
//		if (NULL == pSpace)
//		{
//			::Logger::GETLOG()->ToFile(::Logger::DEBUG, "WARNING: CS_DUNGEON_MOB_HP_INFO GID %d, pSpace is NULL", pUser->GetGID());
//			return;
//		}
//
//		std::map<int, ::ProjectZ::NGame::CMonster *>::iterator itr;
//		itr = pSpace->pMonster.find(gid);
//		if( itr == pSpace->pMonster.end() )
//		{
//			::Logger::GETLOG()->ToFile(::Logger::DEBUG, "WARNING: CS_DUNGEON_MOB_HP_INFO GID %d, invalid mob gid %d", pUser->GetGID(), gid);
//			return;
//		}
//
//		itr->second->hp = hp;
//		itr->second->map_index = map_index;
	}
};

} /*NMatching*/ } /*NCommand*/ } /*ProjectZ*/


#endif /* PROJECTZ_NUSER_NCOMMAND_NMATCHING_CS_DUNGEON_MOB_HP_INFO_H_ */
